using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace common
{
    public class TempSession
    {
        public static void setBag(string tipo, object valore)
        {
            TempSession b = new TempSession();
            b.tipo = tipo;
            b.valore = valore;
            HttpContext.Current.Session.Add("BAG", b);
        }
        public static TempSession getBag()
        {
            if (HttpContext.Current.Session["BAG"] != null) return (TempSession)HttpContext.Current.Session["BAG"];
            TempSession b = new TempSession();
            b.tipo = "";
            b.valore = "";
            return b;
        }

        public string tipo;
        public object valore;
    }

}
